package com.chang.dp.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("users")
@ApiModel("用户信息")
public class UsersEntity extends BaseEntity {
    @TableId(type= IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "用户uuid", notes = "32位随机字符串")
    private String userId;
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("昵称")
    private String nickName;
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("性别 1: 男 | 2: 女")
    private Integer sex;
    @ApiModelProperty("身份证号")
    private String idNumber;
    @ApiModelProperty("头像")
    private String headImg;
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("省")
    private String province;
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("市")
    private String city;
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("现居省")
    private String nowProvince;
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("现居市")
    private String nowCity;
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("手机")
    private String phone;
    @ApiModelProperty("身份证正面")
    private String idPicture1;
    @ApiModelProperty("身份证反面")
    private String idPicture2;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty(value = "状态", notes = "1 待审核 | 2 审核通过 | 3 审核不通过 | 4 已禁用")
    private Integer status;
    @ApiModelProperty(value = "审核失败、禁用 理由")
    private String reason;
}
